package com.example.studentinfo.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author yhan219
 * @since 2022-09-24
 */
@Getter
@Setter
@TableName("student")
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private String sex;


    @Override
    public Serializable pkVal() {
        return this.id;
    }
}